<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Traits\Admin\DashboardViewShareDataTrait;

class Dashboard extends Controller
{
    use DashboardViewShareDataTrait;
    public function index(?string $module = null)
    {
        $this->shareData();
        return view('admin.dashboard', [
            'title' => '控制台',
            'activeModule' => 'core',
            'activeMenu' => 'core.dashboard',
        ])->fragmentIf(request()->hasHeader('HX-Request'), 'content');
    }
}
